const {buildErrObject} = require('../../../utils/buildErrObject');
const checkUserBlock = async function(user = {}) {
    return new Promise((resolve, reject) => {
        if (new Date(user.lock_expire).getTime() > Date.now()) {
            return reject(buildErrObject(409, '用户锁定中'))
        }
        resolve(true)
    })
};

module.exports = {checkUserBlock}